package satir.command;

import satir.framework.command.RegularCommand;
import satir.framework.command.State;

/**
 * The Class ExitCmd.
 * @version 3.0 April 2012
 * @author Creative Family
 */
public class ExitCmd implements RegularCommand {

    /**
     * Execute to exit the game.
     * @param state
     *         the State object
     */
    @Override
    public void execute(final State state) {
	execute();
	state.setState(State.STATE_EXIT);
    }

    /**
     * null method.
     */
    @Override
    public void execute() {
    }

    /**
     * Gets the instruction.
     * @return instruction
     */
    @Override
    public String getInstruction() {
	return "Exit";
    }

}
